<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>顾问端 - 创建报价</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        body {
            max-width: 414px;
            margin: 0 auto;
            background: #f5f5f5;
        }
    </style>
</head>
<body class="bg-gray-50">
    <!-- 导航栏 -->
    <nav class="bg-white shadow-sm px-4 py-3 flex items-center">
        <i class="fas fa-arrow-left text-gray-600 text-xl mr-4"></i>
        <div class="text-lg font-semibold text-gray-800">创建报价</div>
    </nav>

    <!-- 表单内容 -->
    <div class="px-4 py-4 pb-24">
        <!-- 关联需求 -->
        <div class="bg-white rounded-lg p-4 mb-4 shadow-sm">
            <label class="block text-gray-700 font-medium mb-2">关联需求</label>
            <div class="text-blue-500 text-sm">系统功能优化需求</div>
            <div class="text-gray-500 text-xs mt-1 line-clamp-2">需要优化系统的性能，提升用户体验，包括页面加载速度、数据处理效率等方面的改进...</div>
        </div>

        <!-- 报价单号 -->
        <div class="bg-white rounded-lg p-4 mb-4 shadow-sm">
            <label class="block text-gray-700 font-medium mb-2">报价单号</label>
            <div class="text-gray-400 text-sm">提交后自动生成</div>
        </div>

        <!-- 有效期 -->
        <div class="bg-white rounded-lg p-4 mb-4 shadow-sm">
            <label class="block text-gray-700 font-medium mb-2">
                有效期至 <span class="text-red-500">*</span>
            </label>
            <input type="date" class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
        </div>

        <!-- 报价明细 -->
        <div class="bg-white rounded-lg p-4 mb-4 shadow-sm">
            <div class="flex items-center justify-between mb-4">
                <label class="block text-gray-700 font-medium">
                    报价明细 <span class="text-red-500">*</span>
                </label>
                <button class="bg-blue-500 text-white px-4 py-2 rounded-lg text-sm">
                    <i class="fas fa-plus mr-1"></i>添加明细项
                </button>
            </div>
            <div class="space-y-3">
                <div class="border border-gray-200 rounded-lg p-3">
                    <div class="flex items-center justify-between mb-2">
                        <span class="text-sm font-medium text-gray-800">1. 系统性能优化</span>
                        <i class="fas fa-trash text-red-500"></i>
                    </div>
                    <div class="text-xs text-gray-600 space-y-1">
                        <div>数量：1</div>
                        <div>单价：¥8,000</div>
                        <div class="text-blue-600 font-medium">小计：¥8,000</div>
                    </div>
                </div>
                <div class="border border-gray-200 rounded-lg p-3">
                    <div class="flex items-center justify-between mb-2">
                        <span class="text-sm font-medium text-gray-800">2. 数据库优化</span>
                        <i class="fas fa-trash text-red-500"></i>
                    </div>
                    <div class="text-xs text-gray-600 space-y-1">
                        <div>数量：1</div>
                        <div>单价：¥5,000</div>
                        <div class="text-blue-600 font-medium">小计：¥5,000</div>
                    </div>
                </div>
            </div>
        </div>

        <!-- 报价总额 -->
        <div class="bg-white rounded-lg p-4 mb-4 shadow-sm">
            <label class="block text-gray-700 font-medium mb-2">报价总额</label>
            <div class="text-3xl font-bold text-blue-600">¥13,000</div>
        </div>

        <!-- 备注说明 -->
        <div class="bg-white rounded-lg p-4 mb-4 shadow-sm">
            <label class="block text-gray-700 font-medium mb-2">备注说明</label>
            <textarea rows="3" placeholder="请输入备注说明（可选）" class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"></textarea>
            <div class="text-right text-gray-400 text-xs mt-1">已输入 0/500 字</div>
        </div>
    </div>

    <!-- 底部提交按钮 -->
    <div class="fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 p-4" style="max-width: 414px; margin: 0 auto;">
        <button class="w-full bg-blue-500 text-white py-3 rounded-lg font-medium text-lg">
            提交报价
        </button>
    </div>
</body>
</html>

